package com.xja.controller;

import com.xja.entity.Indent;
import com.xja.entity.Register;
import com.xja.entity.Room;
import com.xja.entity.User;
import com.xja.entity.pojo.UrByIndent;
import com.xja.service.impl.ZhsServicelmpl;

import java.util.List;

public class ZhsController {
    ZhsServicelmpl zhsServicelmpl = new ZhsServicelmpl();
    public  boolean  addUser(User user){
        return  zhsServicelmpl.addUser(user);
    }
    public List<User> fingAllUser(){
        return zhsServicelmpl.fingAllUser();
    }
    public List<Room> findRoom(){
        return zhsServicelmpl.findRoom();
    }
    public Integer findUserid(String name) {
        return zhsServicelmpl.findUserid(name);
    }
    public boolean indent(Indent indent){
        return zhsServicelmpl.indent(indent);
    }
    public List<Indent> selecIndent(Integer userid){
        return zhsServicelmpl.selecIndent(userid);
    }
    public  Integer updateroomstatus(Integer roomid){
        return zhsServicelmpl.updateroomstatus(roomid);
    }
    public Integer selecRoomId(Integer userid){
        return zhsServicelmpl.selecRoomId(userid);
    }
    public  Integer updateroomstatus1(Integer roomid){
        return zhsServicelmpl.updateroomstatus1(roomid);
    }
    public boolean deleteIndent(Integer userid){
        return zhsServicelmpl.deleteIndent(userid);
    }
    public List<UrByIndent> selecIndentByName(String username){
        return zhsServicelmpl.selecIndentByName(username);
    }
}
